# Contributor: Bart Ribbers <bribbers@disroot.org>
# Maintainer: Bart Ribbers <bribbers@disroot.org>
pkgname=py3-language-data
pkgver=1.1
pkgrel=1
pkgdesc="Supplementary data about languages used by the langcodes module"
url="https://github.com/rspeer/language_data"
arch="noarch"
license="MIT"
depends="
	py3-marisa-trie
	py3-setuptools
	"
makedepends="
	py3-gpep517
	py3-poetry-core
	py3-wheel
	"
subpackages="$pkgname-pyc"
source="https://pypi.python.org/packages/source/l/language_data/language_data-$pkgver.tar.gz"
options="!check" # No tests
builddir="$srcdir/language_data-$pkgver"

build() {
	gpep517 build-wheel \
		--wheel-dir .dist \
		--output-fd 3 3>&1 >&2
}

package() {
	python3 -m installer -d "$pkgdir" \
		.dist/*.whl
}

sha512sums="
4c9fcbf98a06bc5eb9eb3b004e6254d56cba6eaf3c8ae45f7b30d6d9ac13480344bd03ff234edc2086fea36267644d59aaa4b0db4920c04c83f831db9fc05cf3  language_data-1.1.tar.gz
"
